package com.bbs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bbs.dto.Result;
import com.bbs.entity.Like;
import com.bbs.vo.LikeVO;
import com.bbs.dto.LikeDTO;

import java.util.List;

public interface LikeService extends IService<Like> {
    Result createLike(LikeDTO likeDTO);
    LikeVO getLikeById(Long id);
    List<LikeVO> getAllLikes();
    void deleteLike(Long id);
    List<LikeVO> getLikesByPostId(Long postId);
    List<LikeVO> getLikesByUserId(Long userId);
    Long getLikeCountByPostId(Long postId);
    Result createLike2(LikeDTO likeDTO);
    Result createLike1(LikeDTO likeDTO);
} 